<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript">
function runExe(strPath) {
	try {
		var objShell = new ActiveXObject("wscript.shell");
		objShell.Run(strPath);
		objShell = null;
	}
	catch (e) {
		alert('找不到文件"' + strPath + '"(或它的组件之一)。请确定路径和文件名是否正确，而且所需的库文件均可用。')
	}
}
function closeWindow()
{
window.opener=null;
window.open('', '_self', '');
window.close();
}
</script>
</head>
<body>
<script language="javascript">
runExe('C:\\WINDOWS\\system32\\notepad.exe');
closeWindow();
</script>
</body>
</html>
